# Assertutil是断言的辅助工具类
class AssertUtil:
    #封装断言的方法(ihrm)
    @classmethod
    def ihrm_assert(cls, login_resp, status_code, success, code, message):
        assert status_code == login_resp.status_code
        assert success == login_resp.json().get("success")
        assert code == login_resp.json().get("code")
        assert message == login_resp.json().get("message")


    @classmethod
    def tpshop_assert(cls,login_resp,status_code,status,msg):
        assert status_code == login_resp.status_code
        assert status == login_resp.json().get("status")
        assert msg == login_resp.json().get("msg")

    # 封装tpshop的断言
    @classmethod
    def register_assert(self,regist_resp,status_code,status,msg):
        assert status_code == regist_resp.status_code
        assert status == regist_resp.json().get('status')
        assert msg == regist_resp.json().get('msg')
